package com.pactera.madp.cp.mapper.sync;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.pactera.madp.cp.api.entity.sync.MaMarketingLeadDetailsEntity;
import org.apache.ibatis.annotations.Param;

/**
 * @title 营销线索明细表-MP接口定义
 * @date 2022-05-19
 * @author Deming.Chang
 */
public interface MaMarketingLeadDetailsMapper extends BaseMapper<MaMarketingLeadDetailsEntity> {

    /**
     * 删除销售线索历史数据
     * 汇总指定日期销售线索明细并插入
     * @param maDate  筛选条件
     * @return
     */
    int summaryAndSaveByMaDate(@Param("maDate") String maDate);

}
